import { Login } from "@/api/interface/index";
import { PORT1 } from "@/api/config/servicePort";
import { obj2fd } from "@/utils/index";
import http from "@/api";
// 查询列表
export const getDataByPage = (params: object) => {
  return http.get<Login.ResLogin>(PORT1 + `/admin/logList/${params.pageNum}/${params.pageSize}`, params, { loading: false }); // 正常 post json 请求  ==>  application/json
};
// 导出
export const exportData = () => {
  return http.get(PORT1 + `/admin/logExport`,{}, { loading: false, responseType: "blob" }); // 正常 post json 请求  ==>  application/json
};
